package com.hippoDocker.order.controller;

import com.hippoDocker.commons.entities.CommonResult;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName OrderController
 * @Description TODO 订单资源测试
 * @Author tangxl
 * @Date 2022/8/10 16:52
 **/
@RestController
//@RequestMapping("/r")
public class OrderController {

    @GetMapping("/r1")
    @PreAuthorize("hasAnyAuthority('pms')")
    public CommonResult accessOrder(){
        return CommonResult.success("访问Order资源成功！");
    }
}
